using System;
using System.Collections.Generic;
using Catastrophe.Common.FileM;
using Catastrophe.CommonCore.FileM;
using SiemensAmd.Mmt;

namespace AmdContext
{
	public class MmtConfigSession
	{
		private static readonly MmtConfigEntity _mmtConfigEntity;

		public static MmtConfigEntity MmtConfigEntity
		{
			get
			{
				if (_mmtConfigEntity == null)
				{
					Tuple<MmtConfigEntity, List<FileConfigAttribute>> tuple = new FileConfigManager<MmtConfigEntity>(FileTypeEnum.AppConfig).ReadEntity();
					return tuple.Item1;
				}
				return _mmtConfigEntity;
			}
		}
	}
}
